package com.example.mybatisplusdemo.model.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 积分商城功能
 * </p>
 *
 * @author lqj
 * @since 2025-06-26
 */
@TableName("points_mall")
@ApiModel(value="PointsMall对象", description="积分商城功能")
public class PointsMall implements Serializable {

    private static final long serialVersionUID = 1L;

        @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

        @ApiModelProperty(value = "商品表_主键")
    @TableField("product_id")
    private Long productId;

        @ApiModelProperty(value = "所需积分")
    @TableField("points_price")
    private Integer pointsPrice;

        @ApiModelProperty(value = "逻辑删除")
    @TableField("is_deleted")
        @TableLogic
    private Boolean deleted;

        @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

        @ApiModelProperty(value = "修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

        public Long getId() {
        return id;
        }

            public PointsMall setId(Long id) {
        this.id = id;
            return this;
        }
        public Long getProductId() {
        return productId;
        }

            public PointsMall setProductId(Long productId) {
        this.productId = productId;
            return this;
        }
        public Integer getPointsPrice() {
        return pointsPrice;
        }

            public PointsMall setPointsPrice(Integer pointsPrice) {
        this.pointsPrice = pointsPrice;
            return this;
        }
        public Boolean getDeleted() {
        return deleted;
        }

            public PointsMall setDeleted(Boolean deleted) {
        this.deleted = deleted;
            return this;
        }
        public LocalDateTime getCreateTime() {
        return createTime;
        }

            public PointsMall setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
            return this;
        }
        public LocalDateTime getUpdateTime() {
        return updateTime;
        }

            public PointsMall setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
            return this;
        }

    @Override
    public String toString() {
    return "PointsMall{" +
            "id=" + id +
            ", productId=" + productId +
            ", pointsPrice=" + pointsPrice +
            ", deleted=" + deleted +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
    "}";
    }

}
